# 装饰器1
def make_div(fn):
    def inner():
        result = "<div>" + fn() + "</div>"
        return result
    return inner


# 装饰器2
def make_p(fn):
    def inner():
        result = "<p>" + fn() + "</p>"
        return result
    return inner


@make_div # content = make_div(make_p(content))
@make_p   # 1. content = make_p(content) ,2 content = make_div(content)
def content():
    return "人生苦短!"


result = content()

print(result)

# @make_p  # => content =>  inner   , content = make_p(content)

# 多个装饰器的装饰顺序是: 从内到外的一个装饰顺序
